package com.yisu.expressway.customService.model;

import com.yisu.expressway.R;
import com.yisu.expressway.main_page.model.ModuleID;

/**
 * Created by Administrator on 2017/1/2 0002.
 */

public class ServiceModule {
    private int img_Id;//主页模块图片id
    private ServiceModuleID category_Id;//模块id
    private int string_Id;//字串id


    public ServiceModule(ServiceModuleID moduleID){
        this.category_Id = moduleID;
        switch (moduleID){
            case HIGHWAY_CONDITION:
                img_Id = R.drawable.ic_highway_condition;
                string_Id = R.string.highway_condition_module;
                break;
            case NAVIGATION_QUERY:
                img_Id = R.drawable.ice_highway_navi;
                string_Id = R.string.highway_navi_route;
                break;
            case HIGHWAY_FEE_RULE:
                img_Id = R.drawable.ic_highway_fee;
                string_Id = R.string.highway_fee_rule;
                break;
            case WEATHER_CONDITION:
                img_Id = R.drawable.ic_highway_weather;
                string_Id = R.string.highway_weather;
                break;
            case SERVICE_DISTRICT_AREA:
                img_Id = R.drawable.ic_highway_district;
                string_Id = R.string.highway_district_module;
                break;
            case HIGHWAY_ILLEAGAL:
                img_Id = R.drawable.ic_highway_illegal;
                string_Id = R.string.highway_illegal_moedule;
                break;
            case FEE_STANDARD:
                img_Id = R.drawable.ic_highway_fee_standard;
                string_Id = R.string.highway_fee_standard;
                break;
            case HIGWAY_RESCUE:
                img_Id = R.drawable.ic_highway_rescue;
                string_Id = R.string.highway_rescue_module;
                break;
            default:
                img_Id = R.drawable.ic_info_blank;
                string_Id = -1;
                break;
        }
    }

    public int get_img_Id(){
        return img_Id;
    }

    public int getString_Id(){
        return string_Id;
    }


    public ServiceModuleID getCategory_Id(){
        return category_Id;
    }
}
